KVERS = $(shell uname -r)

#kernel module
obj-m +=globalmem.o

#specific flag for the module compilation.
#EXTRA_CFLAGS=-g -O0

build: globalmem

globalmem:
	make -C /lib/modules/$(KVERS)/build/ M=$(PWD) modules
clean:
	make -C /lib/modules/$(KVERS)/build/ M=$(PWD) clean